package konsult;

public class Proov extends Thread {

	public Proov() throws InterruptedException {
		start();
		
		synchronized (this) {
			wait();
		}
	}
	
	@Override
	public void run() {
		super.run();
		
		synchronized (this) {
			notifyAll();
		}
		
		System.out.println("joumaailm");
	}
	
	public static void main(String[] args) throws InterruptedException {
		Proov p = new Proov();
	}
}
